package com.shangcheng.orders.feign;

import com.shangcheng.orders.pojo.Order;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


@FeignClient(name = "orders")
@RequestMapping("/orders")
public interface OrderFeign {
    @RequestMapping("/{id}")
    public Result update(@RequestBody Order order, @PathVariable String id);

    @RequestMapping("/add")
    public Result<Order> add(@RequestParam("username") String username);

    @RequestMapping("/findById")
    public Result<Order> findById(@RequestParam("id") String id);

}
